$('.travelList-header-return').click(function(e){
    window.history.back(-1); 
    e.prevent();
})

var travelListData=[
    {
        id:"180001",
        src:"list_0411_03.jpg",
        title:"【宿古北之光】古北水镇2日1晚跟团...",
        price:"¥2699",
        content:'5星古北之光温泉酒店住宿',
        time:'每周四、五、六、日',
        person:'265',
        num:'65'
    },
    {
        id:"180002",
        src:"list_0411_06.jpg",
        title:"【游圣诞小镇】密云1日自由行·南山...",
        price:"¥1099",
        content:'独览全球不容错过的25处风景之首',
        time:"每周三、四、五、六、日",
        person:'203',
        num:'38'
    },
    {
        id:"180003",
        src:"list_0411_08.jpg",
        title:"北京1日自由行·八达岭长城+十三陵定...",
        price:"¥159",
        content:'带你领略京都之美',
        time:"每周六、日",
        person:'390',
        num:'90'
    },
    {
        id:"180004",
        src:"list_0411_10.jpg",
        title:"怀柔2日自由行(4钻)【每人减100元】...",
        price:"¥269",
        content:'限时特惠，预订即享每人减100元',
        time:"每周五、六、日",
        person:'269',
        num:'65'
    },
    {
        id:"180005",
        src:"list_0411_12.jpg",
        title:"北京5日4晚跟团游·一价全含·无自费...",
        price:"¥2099",
        content:'深度全面的游览世界文化遗产',
        time:"每周四、五、六、日",
        person:'189',
        num:'56'
    },
]

var travelListHtmlStr='';

$.each(travelListData,function(index,item){
    travelListHtmlStr+='<li data-id="'+item.id+'"><div class="list-img skeleton"><img src="images/img/'+item.src+'"><div class="lijian"></div></div><div class="list-content skeleton"><p>'+item.title+'</p><p><span>无购物</span><span>无自费</span> <span class="blue-bg">爸妈放心游</span></p><p><span class="local-from">北京出发</span>'+item.content+'</p><p>班期：'+item.time+'</p><p><span><span class="price">'+item.price+'</span> 起</span> <span class="person">'+item.person+'人出游</span> <span><span>'+item.num+'条点评</span> <span class="goal">5分</span></span> </p></div></li>';
})

$('.travelList-sec-main ul').append(travelListHtmlStr);

$('.header-menu ul li').click(function(){
    $(this).siblings().removeClass('active');
    $(this).addClass('active');
})

$(function(){
    // console.log('加载完毕');
    setTimeout(() => {
        $('body div').removeClass('skeleton');
        $('body p').removeClass('skeleton');
        $('body ul li').removeClass('skeleton');
    }, 500)
})